using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._3DIntersections
{
    /// <summary>
    /// <para>Intersect 3D Line With Surface</para>
    /// <para>Computes the geometric intersection of 3D line features and one or more surfaces to return the intersection as segmented line features and points.</para>
    /// <para>计算 3D 线要素与一个或多个曲面的几何交点，以将交点作为分割线要素和点返回。</para>
    /// </summary>    
    [DisplayName("Intersect 3D Line With Surface")]
    public class Intersect3DLineWithSurface : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Intersect3DLineWithSurface()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_line_features">
        /// <para>Input Line Features</para>
        /// <para>The input 3D line features.</para>
        /// <para>输入的 3D 线特征。</para>
        /// </param>
        /// <param name="_in_surfaces">
        /// <para>Input Surfaces</para>
        /// <para>One or more surfaces that will be used to determine the points of intersection.</para>
        /// <para>将用于确定交点的一个或多个曲面。</para>
        /// </param>
        /// <param name="_out_line_feature_class">
        /// <para>Output Lines</para>
        /// <para>The output line features that represent the input line features split at the points of intersection with the surface.</para>
        /// <para>表示在与曲面相交点处分割的输入线要素的输出线要素。</para>
        /// </param>
        public Intersect3DLineWithSurface(object _in_line_features, List<object> _in_surfaces, object _out_line_feature_class)
        {
            this._in_line_features = _in_line_features;
            this._in_surfaces = _in_surfaces;
            this._out_line_feature_class = _out_line_feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Intersect 3D Line With Surface";

        public override string CallName => "3d.Intersect3DLineWithSurface";

        public override List<string> AcceptEnvironments => ["XYDomain", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "autoCommit", "configKeyword", "extent", "geographicTransformations", "outputCoordinateSystem", "terrainMemoryUsage", "workspace"];

        public override object[] ParameterInfo => [_in_line_features, _in_surfaces, _out_line_feature_class, _out_point_feature_class];

        /// <summary>
        /// <para>Input Line Features</para>
        /// <para>The input 3D line features.</para>
        /// <para>输入的 3D 线特征。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Line Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_line_features { get; set; }


        /// <summary>
        /// <para>Input Surfaces</para>
        /// <para>One or more surfaces that will be used to determine the points of intersection.</para>
        /// <para>将用于确定交点的一个或多个曲面。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Surfaces")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_surfaces { get; set; }


        /// <summary>
        /// <para>Output Lines</para>
        /// <para>The output line features that represent the input line features split at the points of intersection with the surface.</para>
        /// <para>表示在与曲面相交点处分割的输入线要素的输出线要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Lines")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_line_feature_class { get; set; }


        /// <summary>
        /// <para>Output Points</para>
        /// <para>The optional point features that represent the input line's intersection with a surface .</para>
        /// <para>表示输入线与曲面的交点的可选点要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Points")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_point_feature_class { get; set; } = null;


        public Intersect3DLineWithSurface SetEnv(object XYDomain = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, int? autoCommit = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object terrainMemoryUsage = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, autoCommit: autoCommit, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, terrainMemoryUsage: terrainMemoryUsage, workspace: workspace);
            return this;
        }

    }

}